package com.hellloweb.mainactivity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;

public class SecondActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        Log.e("SecondActivity","onCreate");
    }
    //onStart 启动
    @Override
    protected void onStart() {
        super.onStart();
        Log.e("SecondActivity","onStart");
    }
    //onResume 恢复
    @Override
    protected void onPostResume() {
        super.onPostResume();
        Log.e("SecondActivity","onPostResume");
    }
    //onPause 暂停
    @Override
    protected void onPause() {
        super.onPause();
        Log.e("SecondActivity","onPause");
    }
    //onStop 停止
    @Override
    protected void onStop() {
        super.onStop();
        Log.e("SecondActivity","onStop");
    }
    //onDestory 销毁
    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.e("SecondActivity","onDestroy");
    }
    //onRestart 重新启动
    @Override
    protected void onRestart() {
        super.onRestart();
        Log.e("SecondActivity","onRestart");
    }
    public void colseFunction(View view){
        this.finish();
    }
}